/*
package com.cloud.tsp.controller;

import com.cloud.core.util.R;
import com.cloud.api.domain.tsp.*;
import com.cloud.api.constants.StrVo;
import com.cloud.log.annotation.Log;
import com.cloud.log.enums.BusinessType;
import com.cloud.log.enums.OperatorType;
import com.cloud.mybatis.domain.TableDataInfo;
import com.cloud.tsp.service.IVehicleInformationService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import java.io.IOException;
import java.util.List;

*/
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author haohaibo
 * @since 2023-11-27
 *//*

@RestController
@RequestMapping("/vehicle-information")
@Validated
public class VehicleInformationController {

    @Resource
    private IVehicleInformationService vehicleInformationService;

    @Tag(name = "v1.0")
    @Operation(summary = "车辆管理分页（管理）")
    @PostMapping("/getVehicleList")
    @Log(title = "车辆管理-车辆管理分页", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public TableDataInfo<VehicleDto> selectVehicleList(@RequestBody @Valid QueryVehicle para){
        return vehicleInformationService.selectVehicleList(para);
    }

    @Tag(name = "v1.0")
    @Operation(summary = "接入车辆数（管理）")
    @PostMapping("/getVehicleCount")
    @Log(title = "车辆管理-接入车辆数", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<Long> selectVehicleCount(){
        return R.ok(vehicleInformationService.selectVehicleCount());
    }

    @Tag(name = "v1.0")
    @Operation(summary = "每月接入车辆数（管理）")
    @PostMapping("/getVehicleCountMonth")
    @Log(title = "车辆管理-每月接入车辆数", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<Integer>selectVehicleCountMonth(){
        return R.ok(vehicleInformationService.selectVehicleCountMonth());
    }

    @Tag(name = "v1.0")
    @Operation(summary = "联想vin（ 土耳其 车辆实时位置管理）")
    @PostMapping("/getVinScope")
    @Log(title = "车辆管理-联想vin", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<StrVo> selectVinScope(){
        return R.ok(vehicleInformationService.selectVinScope());
    }

    @Tag(name = "v1.0")
    @Operation(summary = "车辆新增或修改（管理）")
    @PostMapping("/insertOrUpdate")
    @Log(title = "车辆管理-车辆新增或修改", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R insertOrUpdate(@RequestBody @Valid VehicleDto para){
        vehicleInformationService.insertOrUpdate(para);
        return R.ok();
    }

    @Tag(name = "v1.0")
    @Operation(summary = "车辆详情（管理）")
    @PostMapping("/getVehicleDetail")
    @Log(title = "车辆管理-车辆详情", businessType = BusinessType.OTHER, operatorType = OperatorType.MANAGE)
    public R<VehicleDetail> selectVehicleDetail(@RequestBody @Valid StrVo para){
        VehicleDetail vehicleDetail = vehicleInformationService.selectVehicleDetail(para.getId());
        return R.ok(vehicleDetail);
    }

    @Tag(name = "v1.0")
    @Operation(summary = "下载模板")
    @PostMapping("/downloadTemplate")
    @Log(title = "车辆管理-下载模板", businessType = BusinessType.EXPORT, operatorType = OperatorType.MANAGE)
    public void downloadTemplate(HttpServletResponse response) throws IOException {
        vehicleInformationService.downloadTemplate(response);
    }

    @Tag(name = "v1.0")
    @Operation(summary = "导入车辆信息表")
    @PostMapping("/importVehicleList")
    @Log(title = "车辆管理-导入车辆信息表", businessType = BusinessType.IMPORT, operatorType = OperatorType.MANAGE)
    public R importVehicleList(@RequestParam MultipartFile file, @NotEmpty String deptId) throws IOException {
        vehicleInformationService.importVehicleList(deptId,file);
        return R.ok();
    }

    @Tag(name = "v1.0")
    @Operation(summary = "导出车辆信息表")
    @PostMapping("/exportVehicleList")
    @Log(title = "车辆管理-导出车辆信息表", businessType = BusinessType.EXPORT, operatorType = OperatorType.MANAGE)
    public void exportVehicleList(QueryVehicle para, HttpServletResponse response) throws IOException {
        vehicleInformationService.exportVehicleList(para,response);
    }


}*/
